
public class Deom04 {
	public static void main(String[]args) {
		int []arr= {19,40,37,20,50,};
		paixun(arr);
	}
	public static void paixun(int a[]) {
		for (int i = 0; i < a.length; i++) {
			for (int j = 0; j < a.length-i-1; j++) {
				if(a[j]<a[j+1]) {
					int sum=a[j+1];
						a[j+1]=a[j];
						a[j]=sum;
				}
				
			}
		}
		for (int i = 0; i < a.length; i++) {
			System.out.print("|");
			System.out.print(a[i]);
		}
		
	}

}
